/**
 * created on 15.07.2012 by jkonopka
 */
package org.xserver.core.util;

import java.util.Map;

/**
 * @author jkonopka
 * 
 */
public final class MapUtil {

	/**
	 * 
	 */
	protected MapUtil() {
	}

	/**
	 * Check Map of empty.<br>
	 * map == null return true.<br>
	 * map.isEmpty return true.<br>
	 * other return false.<br>
	 * <p>
	 * <strong>Author:</strong> jkonopka, 16.05.2012
	 * 
	 * @param map Map to check
	 * @return true / false
	 */
	public static boolean isEmpty(final Map<?, ?> map) {
		if (map == null) {
			return true;
		}
		return map.isEmpty();
	}

}
